package com.bsj.travel.mapper.mysql;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bsj.travel.def.monitor.job.SysJob;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yinhao
 * @version 1.0
 * @description 系统定时任务
 * @date 2024/1/23
 */
@Repository
@DS("master")
public interface SysJobMapper extends BaseMapper<SysJob> {

    /**
     * 获取全部定时任务信息
     * @return
     */
    List<SysJob> selectAllJob();

    /**
     * 根据条件获取quartz调度器的计划任务列表
     * @param sysJob
     * @return
     */
    List<SysJob> selectJobList(SysJob sysJob);
}
